<HTML>
 <HEAD>
  <TITLE>使用items配置项添加单一组件示例</TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="../../ext-4.0/resources/css/ext-all.css" />
  <script type="text/javascript" src="../../ext-4.0/bootstrap.js"></script>
  <script type="text/javascript" src="../../ext-4.0/locale/ext-lang-zh_CN.js"></script>
  <script type="text/javascript">
	Ext.onReady(function(){
		Ext.create('Ext.panel.Panel',{
			title:'日历',
			frame:true,//渲染面板
			collapsible : true,//允许展开和收缩
			renderTo: Ext.getBody(),
			width : 200,
			bodyPadding: 5,
		    items: [{//向面板中添加一个日期组件
		        xtype: 'datepicker',
		        minDate: new Date()
		    }]
		});
	});
  </script>
 </HEAD>
 <BODY STYLE="margin: 10px"></BODY>
</HTML>
